package com.itheima.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.pojo.Setmeal;
import com.itheima.vo.SetmealVO;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface SetmealMapper extends BaseMapper<Setmeal> {

    @Select("select * from setmeal_t where id = #{setmealId}")
    public SetmealVO selectById(@Param("setmealId") Long setmealId);
    @Select("select * from setmeal_t")
    List<Setmeal> findAll();

}
